﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace MyUi_WPF_Controls.PagingCtr
{
    /// <summary>
    /// PaginationCustomCtr.xaml 的交互逻辑
    /// </summary>
    public partial class PaginationCustomCtr : UserControl
    {  /// <summary>
       /// 分页数据总数
       /// </summary>
        [Bindable(true)]
        public int PageCount
        {
            get { return (int)GetValue(PageCountProperty); }
            set { SetValue(PageCountProperty, value); }
        }

        public static readonly DependencyProperty PageCountProperty =
            DependencyProperty.Register("PageCount", typeof(int), typeof(PaginationCustomCtr));

        public List<int> TLimits
        {
            get { return (List<int>)GetValue(TLimitsProperty); }
            set { SetValue(TLimitsProperty, value); }
        }

        public static readonly DependencyProperty TLimitsProperty =
            DependencyProperty.Register("TLimits", typeof(List<int>), typeof(PaginationCustomCtr));


        public PaginationCustomCtr()
        {
            InitializeComponent();
        }
    }
}
